Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a linter check with github actions #57

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

leogregianin
Copy link
Member

Issue #36

@leogregianin leogregianin requested a review from a team as a code owner August 12, 2022 01:39
strategy:
fail-fast: false
matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Copy link
Member

@camilamaia camilamaia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, thanks! What do you think of having a makefile with a target to test check black. This way we can use it locally and also in the pipeline.

Something like this:

https://github.com/scanapi/scanapi/blob/main/Makefile#L6-L7
https://github.com/scanapi/scanapi/blob/main/Makefile#L15
https://github.com/scanapi/scanapi/blob/main/.github/workflows/lint.yml#L26

- name: Run black formatter
uses: rickstaa/[email protected]
with:
black_args: ". --check"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
black_args: ". --check"
black_args: ". --check"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants